package c.d.a.a.e;

import com.github.mikephil.charting.charts.PieChart;
import com.github.mikephil.charting.charts.PieRadarChartBase;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/* compiled from: PieRadarHighlighter */
public abstract class e<T extends PieRadarChartBase> implements c {
    public T a;
    public List<b> b = new ArrayList();

    public e(T t) {
        this.a = t;
    }

    public b a(float f, float f2) {
        if (this.a.n(f, f2) > this.a.getRadius()) {
            return null;
        }
        float o = this.a.o(f, f2);
        PieRadarChartBase pieRadarChartBase = this.a;
        if (pieRadarChartBase instanceof PieChart) {
            Objects.requireNonNull(pieRadarChartBase.getAnimator());
            o /= 1.0f;
        }
        int p = this.a.p(o);
        if (p < 0 || p >= this.a.getData().g().i0()) {
            return null;
        }
        return b(p, f, f2);
    }

    public abstract b b(int i, float f, float f2);
}
